# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-mrboom
pkgver=0_git20220310
pkgrel=0
_commit="64e874abdd11b845c013ea74e5a62ed1e12d09e2"
_commit_common="2a0ec8d59c6219f6627bc0465cb177be88d8cb4f"
pkgdesc="8 player Bomberman clone for RetroArch/Libretro"
url="https://github.com/libretro/mrboom-libretro"
arch="all"
license="MIT"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/mrboom-libretro/archive/$_commit.tar.gz
	$pkgname-libretro-common.tar.gz::https://github.com/libretro/libretro-common/archive/$_commit_common.tar.gz
	"
builddir="$srcdir/mrboom-libretro-$_commit"
options="!check" # No tests

prepare() {
	default_prepare
	rm -rf libretro-common && mv "$srcdir/libretro-common-$_commit_common" libretro-common
}

build() {
	make
}

package() {
	install -Dm644 mrboom_libretro.so "$pkgdir"/usr/lib/libretro/mrboom_libretro.so
}

sha512sums="
bf4d03184f7d5db148fd7a68edd71cd336d69afe8445ef31ddac010ff6e72c31110b9980bc84c6b6729f7b0254ec358c0f639a33873e61b171ae0084285bdb96  libretro-mrboom-64e874abdd11b845c013ea74e5a62ed1e12d09e2.tar.gz
d27d8f9c36dad00b9a0ace60c7cac8f15159f1450cda28e419fa18c914b3e91781c1e509acdbf32328b98f3c2f6ba1f4994a160346f660e7a3888947553968ee  libretro-mrboom-libretro-common.tar.gz
"
